package org.example;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@Test
public class Main {

   public void Test007(){
      ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml");
      I i=(I)ac.getBean("name");
      System.out.println(i);
      ((ClassPathXmlApplicationContext)ac).close();
   }

   public static void main(String[] args) {
      Main t =new Main();
      t.Test007();
   }
}